package com.kh.pajx.sop.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.kh.pajx.sop.base.BaseDaoImpl;
import com.kh.pajx.sop.dao.IHsEquSwitchDao;
import com.kh.pajx.sop.domain.HsEquSwitch;
import com.kh.pajx.sop.domain.PageBean;
import com.kh.pajx.sop.util.page.QueryHelper;
@Repository
public class HsEquSwitchDaoImpl extends BaseDaoImpl<HsEquSwitch> implements
		IHsEquSwitchDao {

	@Override
	public void save(HsEquSwitch entity) {

		getSession().save(entity);
	}


	@Override
	public void updateByNos(String[] swhIds) {
			String hql = "update HsEquSwitch e set e.relationStatusFlag = 0 where e.swhId in (:swhIds)";
			getSession().createQuery(hql).setParameterList("swhIds",swhIds).executeUpdate();
	}

}
